// Dropdown.scss
.dropdown {
    position: relative;
    width: 100%;
    max-width: 220px;
    font-size: 14px;
    cursor: pointer;

    &-header {
        padding: 5px 16px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &-caret {
        border-top: 6px solid #666;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        transition: transform 0.3s ease;

        &--open {
            transform: rotate(180deg);
        }
    }

    &-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        background-color: #fff;
        border: 1px solid #ccc;
        border-top: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        max-height: 200px;
        overflow-y: auto;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    &-item {
        padding: 8px 16px;
        cursor: pointer;

        &:hover {
            background-color: #f0f0f0;
        }
    }
}